package classes{
	import beniAS3Lib.manager.SingletonManger;
	import beniAS3Lib.utils.BeniStr;
	
	import flash.filesystem.File;
	
	import mx.collections.ArrayCollection;
	
	
	[Bindable]
	public class ModelLocator{
		
		public static function get item():ModelLocator{
			return SingletonManger.getItem(ModelLocator) as ModelLocator;
		}
		
		public var path:String = File.desktopDirectory.nativePath + '\\testSRC';
		public var appName:String = 'MusicBox';
		public var packageName:String = 'com.benimang.musicBox';
		
		public function get sourceFolder():String{
			return path;
		}
		public function get packageFolder():String{
			return (path + '/' + BeniStr.multiReplaceByStr(packageName, '.', '/') + '/');
		}
		public function get voFolder():String{
			return packageFolder + 'vo/';
		}
		public function get commandFolder():String{
			return packageFolder + 'command/';
		}
		public function get serviceFolder():String{
			return packageFolder + 'service/';
		}
		public function get evtTypePath():String{
			return packageFolder + 'data/EvtType.as';
		}
		public function get fontCtrlPath():String{
			return packageFolder + 'controller/FrontCtrl.as';
		}

		
		public var voColl:ArrayCollection;
		public var commandColl:ArrayCollection;
		public var serviceColl:ArrayCollection;
		public var eventColl:ArrayCollection;
		
		public function ModelLocator(){
			voColl = new ArrayCollection();
			commandColl = new ArrayCollection();
			serviceColl = new ArrayCollection();
			eventColl = new ArrayCollection();
		}
		
	}
}